add order and comments in the code