Newton's Law of cooling simulator (analytical approach) using Ruby