My basic code for solving Ptychographic problems