misc helpers added
solution to problem 5 added