Added return of output for Class#exec method