added implicit class for attributes