wrote model associations