more on functions vs classes