Moving robot class methods into separate file