Is Math the Secret Ingredient in Learning to Code?