home task calculator on ruby