created Layer super type for easy working with multiple layers in Java.