finished the height function!