created separate class file