Shield protection code

Not working yet, getting errors... Selmar, can you look into this?