Added method reference and groovy examples.