added weight function
Front End Design Work
minor
Minor