Example usage of custom Capture class