part of lab4ex2codewalk
ex2, 3 finished