Trying to figure out how to create classes for functional code