Changed n for base case