Added basic functions to each class.