Created based on this: http://book.cakephp.org/2.0/en/tutorials-and-examples