Part 3.1 working but need to investigate localmax vs local min figures