Creating a basic engine