add name field to ClassComponent