Added simple renderer infrastructure. still not happy with my code.