Initial controller and some sample code.