Tested and working copy

First version with tested outputs.