ex. alg 1