Ruby Understanding Computation