5 & 6: refactoring static and creating post model