extract to a class