extract for julia in its own file extract.jl