My Solution using Singleton Pattern for Star