simple state design