Homework 4 for the class High Frequency Trading