Work on Truthtable function