Implemented the Mock class