refactored main class, added the method to calculate price and delivery time