Added setWorms() method to Object class.