Basic bug-ridden calculator