About functions

There are various templates, but is it not possible to create new ones by extracting each part of those functions? ‥

① Posting function with photo & comment
② Message function
③ Profile function

I would like to create an application with the three functions of, but I am having trouble finding a template that feels good.