completed simple calc