Creating entities structure. Work in progress.