Write methods for CandyMath