hw5 updated Makefile for ex4 and initial implementation for ex4