extract classes to their own library files