Functionlity to add a new task implemented.