Problem 8

Implemented do lambda form