fixed increase and decrease functions, added even and odd functions