Added Data Logic

Data logic