Move creation of link into view
Add test and refactor competition
Break solution into steps, first stage of restructuring