I had an exam on that code last year xD