Program works fine