more example with malloc