added writing assignment