added Animal classes to a variable and added to array