Added print function to lambda3.