Got part 1 code to compile but it segfaults somewhere