Modified inheritance way of model
http://stackoverflow.com/a/8898556/1761334