completed basic functionallity of recursion project