Change (0) to head. Something like ... "browser").head. Scala List is a special type of collection. Even though it works with things like (INDEX) that's not the best way to use it. It's FIFO type of collection with .head (first available) and .tail (all but first) methods.