Some comments on the code