created separate dataservice class