Created extra class for mouse input