comp524 code