Transforming polymorphism sample Client to static class