Solving training day exercises