delete classes working