added sample activator.java