samples codes