Add classes. Add init trim for input code