implemented power, last-element, and seq= functions