Added chap3 exercises 2 and 4