Extraction operator for customer class

added above feature, also modified Main a bit to make it compatible with
the customer class