Problem 7 and Problem 8 added. Also removed the Maths api and added to another project to be implemented as a library.