Added an example of the State Pattern