example code for the course