original source code with my code changes and small unit tests within an exaple