finished coding class instance with get and getAtttribute methods