converting data model to swift (still WIP -- tons of runtime errors but at least compiles)