Using extend for lists instead of +=