First working version of PA2