adding output code. Lots more to do