omg, finally solved exercise 2b

that was painful... but at least it works now!