#17: Started to implement the layout building and finished the
controller initialization.