implemented lesson deletion