static class from constructor

