Fix printing_freq to allow 32bit values
Complete PPL hw5 code