Avoiding the risks of electrocution and fire in appliance design