code: def get_posts(self, num=None, tag=None, private=False):
  		posts = self.posts
  		if not private:
  			posts = [post for post in posts if post.public]
  		if tag:
  			posts = [post for post in posts if tag in post.tags]
  		if num:
  			return posts[:num]
  		return posts