Only for review sake

Why do you need a class for this program? As a general rule I would normally stick to functions only if a class is not needed.