final verion submitted for prog 1