finished solution to problem 2 and added gitignore to ignore any .project and .pydevproject