Developing logic

Added behaviour property for states;