Initial functions implemented
Tests bad inputs