add the main function and some simple print functions