Fix GrapeBox Codes

Add constructor and destructor