solved pe27

created a new file, an a file of common functions