Simplified implementation of classes in structure.py file.