If we don't include a return statement, the function returns the value undefined instead.

Make sure to pick result.