assignment02 solution