toy code: math calc