1. Added several templates for main programs.