phone classes and inheritence