finished problem49