Implemented the mouse object.