started writing the core