Objects in Java theme 2 assigment 1 (the last method not created)