Added interactive mode and example