started adding functions in helper and added semantics library