added second example with 2 interrrupts