Added example code snippet of lambda in java 8