basic sync example