adds a main and creates a student structure based on the input