added magic method for __get on Post