Storing tasks as associative array