completed the basic string example