Added Behavior class, in favour of Java 8 features (lambdas).