Added recursion. Initial cc coding complete