created factory for microposts