corrected compilation & running