exercises for cs291