finished lab3_java