Added height method and Test.java