Wrote invert function.
Wrote filter-in function.
Wrote product function.
Wrote down function.
Attemped rotate function.
Wrote flatten function.
Wrote merge function.
Wrote count-occurrences function.