add() and exercise 10.1

Haven't debuged the error for add()
Almost finished the exercise.