Minor changes: Changed some simple classes to case classes.