Problem no5 in all 3 lambdas