line 6 til 10 needs some changes (replacing foo and bar)