adapted life example for eve-java compatibility