custum volumes and code for puzzle1