Working prototype, needs tests
From algorithms course
Extracted from a larger project
Small script for learning