add account resource as template code.