working on ch1 exercises