render cube and add example code

#4