Added main functionality and test for example 1