Add mean function to animals