Not perfectly written program