Y owes X Rs.4,000. On 1st January, 2015, Y accepts a 3 months bill for Rs.3,900 in satisfaction of his full claim. On the same date, it was endorsed by X to Z in satisfaction of his claim of Rs.3,980. The bill is dishonoured on the due date. Give the Journal entries in the books of X.