copy the private methods and property to private class