The reference solution for lab 4 has now been posted. The test cases usedfor marking are also posted in lab4tests.zip.
Alexander