Homework 6 - Functional Programming - done