renamed function, returns list with transformed data, assigned class