Removed extra class. Added curl usage