Solutions to exercises in course on advanced functional programming