Solutions to assignments in the weeks 5 - 8