Problem 4 done. Very crude as it is late for me