A university assignment. Mainly uploaded here so I don't forget how to Prolog