Created getters and setters as well as constructors for Node.java