Added constructor to Animal class