added and finished solution 4