Part one of DAA Assignment