procedure as return value

using lambda