Java code for LinkEd Project Sprint