implemented the Fiddler, output is checked for correctness