It's Relatively Simple Until The Last Piece
The last piece is skippable in my opinion, but being able to style buttons to create menus on the fly has a lot of value. 11 lines (including comments) to achieve the buttons I think is definitely worth while.