Implemented IBM1 model