almost working zoo.cpp - L29 crash