calculator program for stanford lectures