Base code and sample project