write-assignment-3

see the file please