Virtual Pet - Constructor method

Created constructor method, which applies the pet's name to the instance