Fixed first code block for types