Market simulator code. Without using pandas: To do improve using pandas dataframe