Exercise 6-3 almost finished. Segfault atm.