Fully functional final version.
Lacking repeats.