Designing the perfect ice cream sandwich