updated solution to git exercise