Code written for the bachelor course on telecommunication engineering at Politecnico di Torino