Created domain and controller classes for post