printer and solution source code