Completed pp6calculator