Formatted the code of `stock` module