looking at how to do malloc/free type functions