Summary

The big picture:

Noteworthy details:

The final source code: