Quatum dot connected to superconducting leads