Working example from software carpentry classs