Wrote "binner" function