main method in Duck.java