Add a method with return value in threaded_example