implement functions run, create, the destructor, and the constructor.