added main function that shows the use case