The second version of programm. Good API was added