Create critical section module

program to describe how critical section works trough a program