Added segment and string classes