Add end to class