Created base implementation for a state builder
Created factory interface for creating internal states