Adding typedef rules