wrote weekly assignment #3