worked on Hand.java