Code examples for different purposes