Add class constructor snippet