Renamed cow to animal and added a type field.

The type field has value 'cow' by default.