main calls all functions once for demonstration