added exercise 3.1 with CTE