Cleaned up code in Post class