solution for first homework 6236391