Updated Rock class

updated