Introduce Sequence class

And make MLP inherit from `Sequence`