using in-class member initialization for Pin class