Implement resizing and update example