samples codes to share