Playing with scala - list example