Added Exercise10.java for Polymorphism chapter, exercise 10.