Add main for example script