Almost there - getting near trait and resource type parsing.