working make and model method
add arrays_to_hash function