added writing example