Adding code samples from get.net