Added expt function