add solutions for exercises from 1.20 to 1.23