calculator solution