Functions/Inverse mappings from school/Exercise