Finished working example.