added draw method snippet