stuff for project euler