Filling in render() method