Refactor payment engine class
Use payment engine as a class