added segments class; added simple [ selection methods