McHugh takes oath of office