Created 4 classes and added the basic functions