Adding framework for basic classes. Some minor implementation