Final (two approaches) corrected