Code changes
Changed variables to const to improve code correctness
Added trailing return types for better readability