wrote weekly assignment 4