A simple example on how to serialize lists