Refactored
Added function comment
Added test