fixed pause using getchar() in template, made excercises on arrays of structures