adding the 3rd exercise with some extras