How to Cook Fresh Sweet Peas?

how to cook fresh sweet peas:-1/2 lb of fresh peas,1 medium chopped onion,2tbsp of oil,1 clove of minced garlic.Saute onions till soft add the garlic and the peas,salt and add half a cup of water, cook it for 30 minutes stirring in between.