Wrote the methods for the class Rabbit