improved multi-object example for demo