Code was tested to work