adding solution 3a