function

added function, return and console