Nice code this will solve my problem