Sample code for EA Task