Implement Flock() class