start of a simple memory allocation