added recursion
Need to fix
getting things right