The vibrating inhomogeneous string: a topic for a course in Computational Physics