namespace exercise

tried using recursive and call functions