simple semphore program