Refactoring Problem 4

Halfing the processing time