create models m_data, q_data and y_data