The piston transforms the energy of the expanding gasses into mechanical energy. The piston rides in the cylinder liner or sleeve. Pistons are commonly made of aluminum or cast iron alloys. To prevent the combustion gasses from bypassing the piston and to keep friction to a minimum, each piston has several metal rings around it, as illustrated by Figure above. These rings function as the seal between the piston and the cylinder wall and also act to reduce friction by minimizing the contact area between the piston and the cylinder wall. The rings are usually made of cast iron and coated with chrome or molybdenum. Most diesel engine pistons have several rings, usually 2 to 5, with each ring performing a distinct function. The top ring(s) acts primarily as the pressure seal. The intermediate ring(s) acts as a wiper ring to remove and control the amount of oil film on the cylinder walls. The bottom ring(s) is an oiler ring and ensures that a supply of lubricating oil is evenly deposited on the cylinder walls.