Update CodeLesson controller and model, add association