first version of the template application