diagrams and maths images added