Partial solution to Data Processors coding exercise