Heap and structs examples