new version of animal and zoo class