simple implementation of container classes