Created Post class and added post functionality to profile view.