My code from intro to java