Amendments, added functional module with example