function Traindata and function for class info intialization declared