Add #from_h to models