Created a synchronizer class