Rewrite.
Merge pull request #1 from LumenTeun/rewrite

Educational rewrite.