class Factory def new_secret_code secret_code = [] 4.times do secret_code << rand(1..6) end secret_code end end