implementation of test application 2