New class constructor.