Run the code and create figures