Added updateMarkForStudent function