Adding PA1 code