now with functioning calculator