#21 Used path's builtin method to get file extension