Added attr_accessor weight to Animal class