pointer class return