First version of application (wrong result)