add source files for exercise 4
add Makefile for exercise 4