Friction and Energy Transformation