new method in robot class