The state machine design pattern for a rabbit