Using let in place of def