Adjusted implementation of addTask to use NSLog and TableView