refactored to extract data arrays to helpers and models.
apply formatter
formatting change

changed formatting of arrays