Added code for calculating the cube of a given integer.
Added code with pow function.