object handling class now working