added main to Pickle class