DT340A assignment 2