Replaced setter by construction and made variables final.