Working with powers and roots