solutions for assignment eighteen 1292622