Updated the summary to be more relevant and included some code samples.