added a pratice about struct and memory allocation and creating memory copy and append