Reads one line from stdin and stores it in ans. Hope that helps.
NOTE: Don't say $ans. $ans replaces itself with the value stored in ans. If, for example, $ans contained "foo", "read $ans" would be equivalent to saying "read foo" which would read one line from standard input and store it in the environment variable foo.