template of the first function
 tupo fixes, comments added
 it is not a python, LoL. Removed stupid syntax