working version

with still existing class error error