Implement context, track and unit classes

And add deprected attribute