program prototype for app engine