added class defination