rearranged problem 5 makefile
add makefile for problem 8