Added functionality of Assignment8.java

Added the functionality of Assignment8.java, only thing left to do is
handle the reading and writing to a file.