R's homework in course