Syntax error on line 35: .
    function top() : int {
