first working version:peagun