experimenting with memory allocation