Understanding the SAM template