Bachelor of Science thesis.