filled in some methods for Join.java