Ridgway Area School District extends O'Brien's contract