add tasks method