putting schedule inside model