Solving for height and dimensions