fully functional washing machine code