Moved Input and Output Visualisation into a Separate Source File

To make it simpler to create new tests.