add sealed class to test matching pattern