modified using switch statement and added if statement to add circle