Refactoring based on not needing command line argument for input value