Working on base cases
Working on base cases and cleaning up helper function