1. draft to model

Added function to modelitems.