finished concurrent application example