changed methods order in template/main.cpp