Tried modifying math cpp