modified Bird.java