Refactoring

Add helper method for request sample file