Updated experiments 3 and 4 to use more OOP code.