A simple library for creating state machines in C# code