Added memory allocation example