coded in JAVA, has to run from command line, one of the class project for VT