Started State pattern, transaction class

Not yet completed or compiled.