automatically find open/closed classes