comp2121 second assignment