Extended Prisoner class and created Security class