added floswald's version of Julia code