Code for Java class CIS-206B