funktion som kopplar något till ett resultat