ex 3.2 with finished controller