Written in Java; Class Assignment