created DataController class and implemented singleton methods