added user constructor
added post constructor