second example template with API