proof of concept for saving dynamic containters to a binary file