started writing some basic, not very effective functions