Periodic function/Composition properties/Exercise