wrote Ghost class