Elementary topology and applications