added add_layer method to LayerStack