added function bar
moved foo function