implement angularjs example in guest and calculator