PinMode function added