class constructor exposes its definition