Added functionality of updating a profesor