created separate rendering class