Classes defined - working on algorithms