Equations of Cylinders and Surfaces of Revolution