solution to 5 done