Created class and methods for adding tasks.