Adding Function interface (Java8 feature)