Adding parameterized constructor to Animal class