add -lib so we don't produce so many .o files
use loop so we don't get a huge tunnel of function calls
use ^ for exponentiation