added steps 4 & 5; getting exponent & mult. inv.