week5 commit, java exercises