Added struct and methods needed for adding and removing nodes as connections