add 3, with algorithm and printing