adding getHeight method