add barn1.java
2 bugs fixed