Compile examples into objects first