Julia

Clean Julia code by encapsulating it in a function.