sixth function added. Final commit.