working code for one interrupt

:D
working code for interrupt