[code style] private classes should not have public constructors