exercise for week 2 of computer science 8468455