add main to skeletal example