extracted a class