Jacob's submissions for second problem