const int N=10 included for better code style