Finding the height of an object