Filled in Hammer.java