fixing errors : day 3