creating class for Robot