solve create animal problem