Labs 2 - threads synchronization