created external class file and added include statement in index