made generic class for containers