Added last exercise #12, simplified exercise #4