States

Got states, which uses the singleton and state patterns.