Added Pin class