Purity by Design