Update core.clj

Maybe split into parts that might help!