Added subclasses to Employee and changed calculatePay to use polymorphism.