SPL, Assignment 3, JAVA