Start defining function addTask under Logic class