Added method for geetting height