gcds, attempting to tackle basic algebra book soon