Demonstration for how to use flags with functions and interfaces