Feature functions3

functions with scoping. test me and press the merge button plz. :D