Added solution for exercises 20-23.