Inlined a helper
Problem 5