I mean, move them out so that they are defined at the same indentation level as `egypt_fraction`. Currently you have these functions defined within the function, which makes them impossible to access outside of this function.