problem set7 pr7-9 done