removed class for stateless functional programming