updated static polymorphism example