Email (record): Object oriented design with applications