fix import error by moving Summary class to independent module