Created function for creating the station objects.