doing more stuff with results from ex1 and 2
finished ex3

bit over complicated handling of case 2