Initial work

Could use try..with. resources here :)