How to write a Scala method (function) that returns a Future