update barn1.cpp