Modified Star class to work properly