you can directly access marks[] no need to use parameter.