ex14 functions, digging into different parts of program