On some classes of Z -graded Lie algebras