calc app from lecture