Remove system out println outside the main method