completes A4 exercises