write_answers function

Write tutorial answers to file