My code from intro to Java