Added getter and setter for name field.