Engineering signal processing pathways in living cells: from logic gates to logic funtions