Change close method() to public