made seperate IR class