changes in prova1.cpp plus testing functionality