Added links functionality with passing tests