added Object Method, and fixed outputs