Edited lines 90 to 93 and included function binarize(x, column)