Added total attribute to Order class