Created class file

Created separate class file and included on index page