added base_layer class
added layer class