changing the order for the first code example