Realm added. Classes in Entities changed to structs