work from CS50 week 2