added middleclass submodule