non-working - not properly printing object attributes to console