Question: I want to have a person run a program on my website.

The program would scan for the computer's model name and manufacture

Would there be any way to achieve this?

Answer: 
Additional observations, note [trait App](http://www.scala-lang.org/api/current/index.html#scala.App) to make an object executable, hence not having to declare a `main(...)` function, for instance like this,

```
object Sum extends App {
  import scala.io._
  import scala.util._

  val nums = Source.stdin.getLines.flatMap(v => Try(v.toInt).toOption)
  println(s"Sum: ${nums.sum}")
}

```

Using `Try`, non successful conversions from `String` to `Int` are turned to `None` and flattened out.

Also note objects and classes are capitalized, hence instead of `object sum` by convention we write `object Sum`.
Try this piece of code. It should work as intended.

```
object Sum {
    def main(args: Array[String]) {
        val lines = io.Source.stdin.getLines
        val numbers = lines.map(_.toInt)
        println(s"Sum: ${numbers.sum}")
    }
}

```

Plus, the correct shortcut to end the input stream is **Ctrl + D**.