adds main and Example