Add cwInstance class