Made Java 1.6 compatible, please use JDK 1.6 for coding