Add a simple way to test each implementation
Make the shell version correct