tendrian que hacer dos threads diferentes...