Working on ch1 and 2 examples