washing machine degin working principle