Reimplemented fifth and third problems.