Completed work on state flags
Added different states to demo project