created class with methods for creating and deleting objects (Ashot
please review this code)