Just as with any other type, extension functions have to be imported if they won't be used. Our isPowerOf2 extension is defined in the quickstart.kotlin.extensions package, so we'd import it in the file where we want to use it:
import quickstart.kotlin.extensions.isPowerOf2