Added code for first rule