added working version of proflem 2