Building a Command Line Application: Functions