Started writing recursive method