uploaded assignment 1 - binary/gray converter