add Lab2 gumballmachine_java_state_pattern