Create ir code v 2

added code for manual