How can I create my own autofarm?

Please help me in this task. Please guide me how can I create contract and what are the steps...

create 3 ERC20 tokens A , B , C
create pool in uniswap => A-B , B-C and A-C pool
now add these LP tokens of these pool in autofarm
user can deposit / withdraw these LP token from autofarm
Create another token for Reward => D
for depositing LP tokens user will get D token as a reward according to standard autofarm contract calculation
allocation point of => A-B pool LP token => 200
B-C pool LP token => 300
A-C pool LP token => 500