She aint pretty, but she gets the job done, using some recursion too!