command-line implementation example