First reasonably decent code of HW