initial version of State pattern / Mobile