Commented Java lab 2