Modified main.java

Changed object declarations to new Pet to demonstrate polymorphism.