Majid's code
.