DD2424 Assignment 4