Tidied up advanced examples