Code examples- editted