A class of Solvable Lie algebras