Demonstration of polymorphous functions: calcPerimeter() and calcArea()