DMS assignment 4