week 10: implement all problems