Takeaway working as specified. All tests passing