implemented join() for proj1