Importing base classes

This commit provides a set of base classes for pt2.
Most of them are additional structures.