Commented problem throughout an ipython notebook. Need to check dimensions in recursive step.