using a class instead of arrays now