modelbuilder: easy attribute typing