copied Upu's code to a new directory to play with it