update code and output file for dog 2