Added system print function to main class