implementing FromModel