exercise 16 extra credit - structs on stack instead of heap