before course model