Changing 'type' to 'class'.