added basic operation for calculating the PA