course model and setting up adapter