lavender rewritten as class