lib: Changing reference to Pin as a struct to a class, as it is a class.