The state event design pattern · Study