Wouldn't a function be more straight-forward for this than a class?