finished programming assignment week 2