Notes on Cost and Sketches