Moved Core Data functionalities into new class. Added TableViewController.