A simple binary converter