solved the synced queue exercise