Completed Methods.java to compile