added part of 3.6 in programming exercises