class Horse implements Animal, Asset { int stomachCapacity; int stomachContents; double marketValue; public String makeNoise() { return "Neigh"; } public String move(int numSteps) { return "Gallop"; } public void eat(int pounds) throws Exception { this.stomachContents += pounds; if (this.stomachContents > this.stomachCapacity) { throw new Exception(); } } public void depreciate(double fracDepr) { this.marketValue *= (1 - fracDepr); } }