added custom class to create pin