This works by taking every operation and appends the result to an array. The items in that array then get turned int list elements