Tutorial attempt from http://net.tutsplus.com/tutorials/php/diving-into-symfony-2-2/