started implementing the core engine.