calc demo on google app with thrift