- Added Truth table creation code and printResult() call