Working principles of washing machine