Implement render function - All tests pass