Instantiated the classes that are needed.