implemented factory for purchase order
implemented calculation order
implemented unit test for generate order