Adding the main class, with basic functionality.