Implemented output with strategy pattern

Added a DumpInterface that defines `dump($path, $contents)` method for dumping the generated result.