Building a scientific calculator