Session 3 Homework

Session 3 Homework for Salim Hamed.
no need to check type here -- you are controlling the content of the d_list, and if there is something wrong with, you would want to get an error!