IN510 Programming 1 paper, programmed in Delphi