these are final versions of d1 to d4 submitted semester 1