Validation and argument exceptions added to Square::set() method.